﻿//////////////////////////////////////////////////////////////////////////////
//
//  Copyright © 1998-2024 Glodon Company Limited.  All rights reserved.
//
//  Use of this software is subject to the terms of the Glodon license
//  agreement provided at the time of installation or download, or which
//  otherwise accompanies this software in either electronic or hard copy form.  
//
//////////////////////////////////////////////////////////////////////////////


#pragma once
#include "GcmpUiInterface.h"
#include "IEvent.h"

namespace gcmp
{
    class IActionInputEventHandler;
    class IActionInputDialog;

    /// \breif Action输入事件
    class GCMP_UI_INTERFACE_EXPORT IActionInputEvent : public IEvent
    {
    public:

        /// \breif 构造函数
        IActionInputEvent();

        /// \breif 析构函数
        virtual ~IActionInputEvent();

        /// \breif 添加Action输入事件处理者
        ///
        /// \param pHandler Action输入事件处理者
        /// \return  添加成功返回true，否则返回false
        virtual bool Add(IActionInputEventHandler* pHandler) = 0;

        /// \breif 删除Action输入事件处理者
        ///
        /// \param pHandler Action输入事件处理者
        /// \return  删除成功返回true，否则返回false
        virtual bool Delete(IActionInputEventHandler* pHandler) = 0;

        ///  \brief 获取Action输入事件发送者
        ///
        /// \return  Action输入对话框
        virtual IActionInputDialog* GetSender() const = 0;
    };
}

